package org.bitmaps.cutBitmap.tool
{
	import flash.geom.Rectangle;

	public class DrawEllipse extends DrawRect
	{
		public function DrawEllipse($bound:Rectangle)
		{
			super($bound);
			type = 2;
		}
		
		override protected function draw():void
		{
			_graphics.graphics.clear();
			_graphics.graphics.lineStyle(1,color);
			trace(_endPoint.x-_startPoint.x,_endPoint.y-_startPoint.y)
			_graphics.graphics.drawEllipse(_startPoint.x,_startPoint.y,_endPoint.x-_startPoint.x,_endPoint.y-_startPoint.y);
		}
	}
}